package cn.edu.suse.epilepsy.controller;

import cn.edu.suse.epilepsy.common.R;
import cn.edu.suse.epilepsy.service.DoctorTradeInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: QingShu
 * @Date: 2024/7/8 9:53
 */
@Controller
@ResponseBody
@RequestMapping("/doctormanage")
public class DoctorTradeInfoController {
    @Autowired
    private DoctorTradeInfoService doctorTradeInfoService;
    @GetMapping("/tradeinfo{id}")
    public R getDoctorTradeInfo(Integer id) {
        return R.success(doctorTradeInfoService.selectDoctorTradeInfoByDoctorId(id));
    }
}
